package com.xl.mananger;

/**
 * 
 * @author 深圳-夕落  2014-11-25
 * 管理的抽象类
 */
public abstract class Manager {

	/**
	 * 根据类名返回一个类对象
	 * @param className
	 * @return
	 */
	public static Class loadClass(String className){

		Class clazz = null;
		
		try
		{
			clazz = Thread.currentThread().getContextClassLoader().loadClass(className);
			if(null == clazz)
			{
				clazz =  Class.forName(className);
			}
			
		} catch (ClassNotFoundException e) 
		{
			e.printStackTrace();
		}
		
		return clazz;
	}
}
